package yaner.hotel.manager.resource.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@TableName("t_room_info")
public class Room {
    /**
     * 房间id
     */
    @TableId
    private String roomId;
    /**
     * 房间类型id
     */
    private String roomTypeId;
    /**
     * 房间编号
     */
    private String number;
    /**
     * 房间状态
     */
    private String roomStatus;
    /**
     * 房间长
     */
    private Integer length;
    /**
     * 房间宽
     */
    private Integer width;
    /**
     * 房间高
     */
    private Integer height;
    /**
     * 房间基础设施id
     */
    private String infrastructureId;
    @DateTimeFormat(pattern = "yyyyMMdd HH:mm:ss")
    private Date createTime;
    @DateTimeFormat(pattern = "yyyyMMdd HH:mm:ss")
    private Date updateTime;
}
